<template>
    <div class="login-wraper">
        billSettle
    </div>
</template>

<script>
    export default {
        data() {
            return {
                loading: false,
            };
        },
        beforeCreate() {
            this.form = this.$form.createForm(this, { name: 'normal_login' });
        },
        methods: {
            test() {
                var a = {
                    title: 'title1',
                    children: [
                        {
                            title: 'title1-1',
                            children: []
                        },
                        {
                            title: 'title1-2',
                            children: []
                        },
                        {
                            title: 'title1-3',
                            children: []
                        },
                        {
                            title: 'title1-4',
                            children: [
                                {
                                    title: 'title1-4-1',
                                    children: []
                                }
                            ]
                        }
                    ]
                }

                function aaaa(params) {
                    if (params.children && params.children.length) {
                        params.children.forEach(element => {
                            aaaa(element);
                        });
                    } else {
                        console.log(params.title);
                        return params.title;
                    }
                }
                // aaaa(a);
            }
        },
        mounted() {

        }
    }
</script>

<style scoped lang="less">
</style>